package com.dianping.cat.home.exception.entity;

import com.dianping.cat.home.exception.BaseEntity;
import com.dianping.cat.home.exception.IVisitor;








public class ExceptionLimit
  extends BaseEntity<ExceptionLimit>
{
  private String m_id;
  private String m_domain;
  private String m_name;
  private int m_warning;
  private int m_error;

  public ExceptionLimit() {}

  public ExceptionLimit(String id) { this.m_id = id; }




  public void accept(IVisitor visitor) { visitor.visitExceptionLimit(this); }



  public boolean equals(Object obj) {
/*  34 */     if (obj instanceof ExceptionLimit) {
/*  35 */       ExceptionLimit _o = (ExceptionLimit)obj;

/*  37 */       if (!equals(getId(), _o.getId())) {
/*  38 */         return false;
      }

/*  41 */       return true;
    }

/*  44 */     return false;
  }


/*  48 */   public String getDomain() { return this.m_domain; }



/*  52 */   public int getError() { return this.m_error; }



/*  56 */   public String getId() { return this.m_id; }



/*  60 */   public String getName() { return this.m_name; }



/*  64 */   public int getWarning() { return this.m_warning; }



  public int hashCode() {
/*  69 */     int hash = 0;

/*  71 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }




  public void mergeAttributes(ExceptionLimit other) {
    assertAttributeEquals(other, "exception-limit", "id", this.m_id, other.getId());

/*  80 */     if (other.getDomain() != null) {
/*  81 */       this.m_domain = other.getDomain();
    }

/*  84 */     if (other.getName() != null) {
/*  85 */       this.m_name = other.getName();
    }

/*  88 */     this.m_warning = other.getWarning();

/*  90 */     this.m_error = other.getError();
  }

  public ExceptionLimit setDomain(String domain) {
/*  94 */     this.m_domain = domain;
    return this;
  }

  public ExceptionLimit setError(int error) {
/*  99 */     this.m_error = error;
/* 100 */     return this;
  }

  public ExceptionLimit setId(String id) {
/* 104 */     this.m_id = id;
/* 105 */     return this;
  }

  public ExceptionLimit setName(String name) {
/* 109 */     this.m_name = name;
/* 110 */     return this;
  }

  public ExceptionLimit setWarning(int warning) {
/* 114 */     this.m_warning = warning;
/* 115 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/exception/entity/ExceptionLimit.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */